package com.learn.project2.controller.admin;

import com.learn.project2.model.vo.admin.region.RegionListVO;
import com.learn.project2.service.admin.region.RegionService;
import com.learn.project2.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO 商场管理-行政区域
 * @param:  
 * @return:  
 * @author 亓永杰
 * @date: 2022-01-06 21:16
 */
@RestController
@RequestMapping("admin/region")
public class RegionController {

    @Autowired
    RegionService regionService;
    @RequestMapping("list")
    public Result list(){
        RegionListVO regionListVO = regionService.listRegions();
        return Result.ok(regionListVO);
    }
}
